#pragma once
#ifndef _CONFIGURE_H
#define _CONFIGURE_H

#include "ConfigFileReader.h"
#include "Singleton.h"


class Configure : public Singleton< Configure >
{
public:
  int lookatDistance;
  int windowWidth, windowHeight;
  float globeRadius;
  int globeSliceNum;
  wstring dataFolder;

  Configure(void)
  {
    ConfigFileReader configFileReader (L"config.txt");
    lookatDistance = configFileReader.getAttrVal< int > (L"lookatDistance");
    windowWidth = configFileReader.getAttrVal< int > (L"windowWidth");
    windowHeight = configFileReader.getAttrVal< int > (L"windowHeight");
    globeRadius = configFileReader.getAttrVal< float > (L"globeRadius");
    globeSliceNum = configFileReader.getAttrVal< int > (L"globeSliceNum");
    dataFolder = configFileReader.getWStrAttrVal (L"dataFolder");
  }

};



#endif